package com.imooc.converter;

import com.imooc.dto.category.CategoryDto;
import com.imooc.dto.index.CarouselDto;
import com.imooc.pojo.Carousel;
import com.imooc.pojo.Category;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;

import java.util.List;

/**
 * @ClassName: CategoryConverter
 * @Description:  商品分类转换器
 * @author: limingxing
 * @Date: 2019-12-25 19:39
 */
@Mapper(componentModel = "spring")
public interface CategoryConverter {

    @Mappings({})
    CategoryDto category2Dto(Category category);

    List<CategoryDto> category2List(List<Category> categories);
}
